﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CategoriesList.ascx.cs" Inherits="UserControls_CategoriesList" %>
<asp:DataList ID="list" runat="server" CssClass="CategoriesList" Width="150px">
    <HeaderStyle CssClass="CategoriesListHead" />
    <HeaderTemplate>
        CATEGORIAS
    </HeaderTemplate>
    <ItemTemplate>
         <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Link.ToCategoryWithoutRewritter(Eval("categoriaID").ToString())%>'
            Text='<%# HttpUtility.HtmlEncode(Eval("nome").ToString()) %>' CssClass='<%# Eval("categoriaID").ToString() == Request.QueryString["categoriaID"] ? "CategoriesListSelected" : "CategoriesListUnselected" %>'>
        </asp:HyperLink>
  </ItemTemplate>
</asp:DataList>

